using FSM.Model; 
using System; 
using System.Collections.Generic;
using System.IO;
using System.Text; 
 
namespace FSM.IBll 
{ 
    public interface ILogEventBll 
    { 
        #region 查询 
        /// <summary> 
        /// 根据键值查询单个信息 
        /// </summary> 
        /// <param name="pkid">键值</param> 
        /// <returns></returns> 
        log_event Get(int? pkid); 
 
        /// <summary> 
        /// 分页查询批量信息 
        /// </summary> 
        /// <param name="eventId">事件id</param> 
        /// <param name="message">消息</param> 
        /// <param name="page">页码</param> 
        /// <param name="page_size">每页显示的条数</param> 
        /// <returns></returns> 
        Tuple<List<log_event>, int> ListPagin(int? eventId, string message, int page, int page_size); 
 
        /// <summary> 
        /// 查询批量信息 
        /// </summary> 
        /// <param name="eventId">事件id</param> 
        /// <param name="message">消息</param> 
        /// <returns></returns> 
        List<log_event> List(int? eventId, string message);

        /// <summary>
        /// 获得要导出的数据的Excel字节
        /// </summary>
        /// <param name="eventId">事件ID</param>
        /// <param name="message">消息内容</param>
        /// <returns></returns>
        byte[] Export(int? eventId, string message);
        #endregion
    } 
} 
